package com.itelite.service;

import com.github.pagehelper.PageInfo;
import com.itelite.domain.dto.*;
import com.itelite.domain.pojo.TrainingRecord;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/8/6-8:55
 **/
public interface RecordService {
    boolean uploadTrainingRecord(TrainingRecord record, MultipartFile[] files);
    TrainingRecordDto getTrainingRecordDetail(Integer recordId);
    PageInfo<TrainingRecordVo> getTrainingRecordList(RecordParam param);
    PageInfo<TimelineRecord> getTimelineRecord(BaseParam param);
    boolean deleteRecord(Integer recordId);

    /**
     * 导出word时的参数
     * @param recordId 培训记录
     * @return 返回参数
     */
    Map<String, Object> getWordRecordParam(Integer recordId);

    /**
     * 查询老师的培训量化
     * @param param 参数
     * @return 量化信息
     */
    List<TeacherRecordExcel> getTeacherTrainingRecord(RecordParam param);

    /**
     * 批量导出excel小组
     * @param param 时间、小组id
     * @return 小组培训记录
     */
    List<GroupRecordExcel> getExcelRecordParam(RecordParam param);

    /**
     * 查询培训记录所属组
     * @param recordId 培训记录id
     * @return 返回组号
     */
    Integer getRecordBelongingGroupId(Integer recordId);
}
